from Get_Path_info import Get_Path
import os
import configparser

path=Get_Path()

config_path=os.path.join(path,'./config.ini')

config=configparser.ConfigParser()

config.read(config_path,encoding='utf-8')

class ReadConfig():

    def get_http(self,value):

        return config.get('HTTP',value)

    def get_account(self,value):

        return config.get('ACCOUNT',value)

    def get_order_info(self,value):

        return config.get('Order_Info',value)

    def get_db_info(self,value):

        return config.get('DATABASE',value)